package com.cracker.sso.mapper;

import com.cracker.sso.dto.response.UserDto;
import com.cracker.sso.model.UserModel;
import org.modelmapper.ModelMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class UserMapper {
    @Autowired
    private ModelMapper mapper;

    public UserDto modelToDto(UserModel model) {
        return mapper.map(model, UserDto.class);
    }
}
